import request from '@/utils/request'

// 查询地标管理列表
export function listLandmark(query) {
  return request({
    url: '/mall/landmark/list',
    method: 'get',
    params: query
  })
}

// 查询地标管理详细
export function getLandmark(id) {
  return request({
    url: '/mall/landmark/' + id,
    method: 'get'
  })
}

// 新增地标管理
export function addLandmark(data) {
  return request({
    url: '/mall/landmark',
    method: 'post',
    data: data
  })
}

// 修改地标管理
export function updateLandmark(data) {
  return request({
    url: '/mall/landmark',
    method: 'put',
    data: data
  })
}

// 删除地标管理
export function delLandmark(id) {
  return request({
    url: '/mall/landmark/' + id,
    method: 'delete'
  })
}

// 导出地标管理
export function exportLandmark(query) {
  return request({
    url: '/mall/landmark/export',
    method: 'get',
    params: query
  })
}

// 导入地标
export function importTemplate() {
  return request({
    url: '/mall/landmark/importTemplate',
    method: 'get',
  })
}